package org.inter.fsb.utils;

import lombok.AccessLevel;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * 通用返回
 * @param <T>
 */
@Data
public class ProxyResponse <T> implements Serializable {

    @Getter(AccessLevel.NONE)
    @Setter(AccessLevel.NONE)
    public final static int STATUS_ERROR=0;
    @Getter(AccessLevel.NONE)
    @Setter(AccessLevel.NONE)
    public final static int STATUS_SUCCESS=1;
    private String message;
    private int code = 1;
    private T data;


    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
